package com.demo8.basic.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;

@Data
public class BaseEntity implements Serializable {


    /**
     * 搜素条件
     */
    @TableField(exist = false)
    private String searcheValue;

    /**
     * 请求参数
     */
    @TableField(exist = false)
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Map<String, Object> paramMap;

    /**
     * 创建者
     */
    private String createBy;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 20,format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新者
     */
    private String updateBy;

    /**
     * 更新时间
     */
    @Excel(name = "更新时间", width = 20,format = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 当前页，默认当前页：1
     */
    @TableField(exist = false)
    private Integer pageNum=1;
    /**
     * 分页数，默认分页数：10
     */
    @TableField(exist = false)
    private Integer pageSize=10;

    @TableField(exist = false)
    private Date beginTime;

    @TableField(exist = false)
    private Date endTime;

}
